package com.class04.ioc_01;

import org.springframework.core.io.Resource;

//自定义单例设计模式去构建当前类（饿汉式）
public class ClientService {
    //    直接new体现饿汉式
    private static ClientService clientService = new ClientService();

    //    关键在于构造方法私有化
    private ClientService() {

    }

    public static ClientService createInstance() {
        return clientService;
    }
}
